package com.lhl.jwt.resolver;

import io.swagger.annotations.Api;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import java.util.List;

/**
 * @className: com.lhl.jwt.config.LoginWebConfig
 * @description: TODO 类描述
 * @author: king
 * @date: 2021-01-12 10:41
 **/
@Api(tags = "LoginWebConfig", produces = "LoginWebConfig")
@Configuration
public class LoginWebConfig extends WebMvcConfigurationSupport {

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> argumentResolvers) {
        argumentResolvers.add(new LoginUserHandlerMethodArgumentResolver());
    }
}
